package com.jrasp.demo;

import java.lang.instrument.Instrumentation;

/**
 * @author jrasp
 * @date 2021/11/08 上午11:31
 */
public class Agent {

    public static void premain(String agentArgs, Instrumentation inst) {
        anymain(agentArgs, inst);
    }

    public static void agentmain(String agentArgs, Instrumentation inst) {
        anymain(agentArgs, inst);
    }

    private static void anymain(String agentArgs, final Instrumentation inst) {
        // 打印 agentArgs
        System.out.println("agentArgs: " + agentArgs);
    }
}